import {getRequest, postRequest, putRequest, deleteRequest, uploadFileRequest} from '@/utils/api';


/**
 * 获取字典信息
 * @param data
 * @returns {*}
 */
//SysDictController
export const getTableData = data => postRequest('/sysDict/list', data);
export const editTableData = data => postRequest('/sysDict/editData', data);
export const addTableData = data => postRequest('/sysDict/addData', data);
export const removeTableData = data => postRequest('/sysDict/removeData', data);
export const getSysDictList = data => postRequest('/sysDict/sysDictList', data);
export const addSysDictTableData = data => postRequest('/sysDict/addSysDict', data);
export const removeSysDictTableData = data => postRequest('/sysDict/removeSysDict', data);
export const editSysDictTableData = data => postRequest('/sysDict/editSysDict', data);
export const getDictByCodeAndValue = data =>  postRequest('/sysDict/getDictByCodeAndValue', data);
//SysSqlController
export const getSysSqlTableData = data => postRequest('/sysSql/list', data);
export const addSysSqlTableData = data => postRequest('/sysSql/addSysSqlRow', data);
export const updateSysSqlTableData = data => postRequest('/sysSql/updateSysSqlRow', data);
export const removeSysSqlTableData = data => postRequest('/sysSql/removeSysSqlRow', data);
export const getSysSqlDataSourceList = () => postRequest('/sysSql/getDataSourceList');




